//
//  Person.m
//  test-ios
//
//  Created by wyz5204 on 2023/2/12.
//

#import "Person.h"

@implementation Person

- (id)init
{
    self = [super init];
    if (self) {
        NSLog(@"Person init %@" , self);
    }
    return self;
}

- (id)initWithName:(NSString *)name{
    if(self = [super init]){
        NSLog(@"Person initWithName %@" , self);
        _name  =name ;
    }
    
    return self ;
}

//@synthesize _name;
@dynamic name;

-(NSString*) name{
    return _name ;
}

- (BOOL)isWoman{
    return false;
}

+(Person*)createPerson{
    Person* newCreate = [Person new];
    return newCreate ;
}

- (void)play:(int)time Time:(int)age{
    NSLog(@" play time %d , %d" , time , age) ;
}


@end
